package com.acme.mock;

import java.io.Serializable;

public class Client implements Serializable{

	private Account account;
	private String name;
	private Gender gender;
	
	public Client(Account account, String name, Gender gender) {
		this.account = account;
		this.name = name;
		this.gender = gender;
	}

	public Account getAccount() {
		return account;
	}

	
	public String getName() {
		return name;
	}
	
	public String getSalutation(){
		StringBuffer stb = new StringBuffer();
		stb.append(gender);
		stb.append(" ");
		stb.append(name);
		return stb.toString();
	}

	@Override
	public String toString() {
		StringBuffer stb = new StringBuffer(getSalutation());
		stb.append(" ");
		stb.append(this.getAccount());
		return stb.toString();
	}
	
}
